import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *

class DumbDialog(QDialog):
    def __init__(self,  parent = None):
        super(DumbDialog,  self).__init__(parent)
        self._diawidth = 300
        self._diaheight = 200
        self._title = "hello world"
        self.setWindowTitle(self._title)
        self.setMaximumWidth(self._diawidth)
        self.setMaximumHeight(self._diaheight)

if __name__ == "__main__":
    app = QApplication(sys.argv)
    dia = DumbDialog()
    dia.title = "hello"
    dia.show()
    app.exec_()
    
